package logic.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by LEECO on 2016/6/3.
 */
public class OrderBean implements Serializable {
    /**
     *
     * "page":{
     "page":1,
     "pageNum":10,
     "totalNum":63,
     "totalPage":7
     },
     *
     *
     *
     *
     *
     * "amount":2, //int 类型 数量
     "id":2, //long 类型 订单id
     "ticketImg":null, //string 类型 图片地址
     "propertyName":"儿童票", //string 类型 属性名称
     "spotName":"二灵山温泉", //string 类型 景点名称
     "status":0, //int 类型 订单状态 0=未付款 10=已付款(待使用) 20=已使用 30=已过期
     "totalMoney":40 ,//int 类型 总金额
     "usableAmount":0  //int 类型 可用门票数量
     */

    private Page page;
    private List<OrderBeanList> ticketOrderList;


    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public List<OrderBeanList> getTicketOrderList() {
        return ticketOrderList;
    }

    public void setTicketOrderList(List<OrderBeanList> ticketOrderList) {
        this.ticketOrderList = ticketOrderList;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "page=" + page +
                ", ticketOrderList=" + ticketOrderList +
                '}';
    }

    public class Page implements Serializable{
        private int page;
        private int pageNum;
        private  int totalNum;
        private int totalPage;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getTotalNum() {
            return totalNum;
        }

        public void setTotalNum(int totalNum) {
            this.totalNum = totalNum;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }
    }



    public class OrderBeanList implements Serializable{
        private int amount;
        private int id;
        private String ticketImg;
        private String propertyName;
        private String spotName;
        private int status;
        private double totalMoney;
        private int usableAmount;

        public int getAmount() {
            return amount;
        }

        public void setAmount(int amount) {
            this.amount = amount;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTicketImg() {
            return ticketImg;
        }

        public void setTicketImg(String ticketImg) {
            this.ticketImg = ticketImg;
        }

        public String getPropertyName() {
            return propertyName;
        }

        public void setPropertyName(String propertyName) {
            this.propertyName = propertyName;
        }

        public String getSpotName() {
            return spotName;
        }

        public void setSpotName(String spotName) {
            this.spotName = spotName;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public double getTotalMoney() {
            return totalMoney;
        }

        public void setTotalMoney(double totalMoney) {
            this.totalMoney = totalMoney;
        }

        public int getUsableAmount() {
            return usableAmount;
        }

        public void setUsableAmount(int usableAmount) {
            this.usableAmount = usableAmount;
        }

        @Override
        public String toString() {
            return "OrderBean{" +
                    "amount=" + amount +
                    ", id=" + id +
                    ", ticketImg='" + ticketImg + '\'' +
                    ", propertyName='" + propertyName + '\'' +
                    ", spotName='" + spotName + '\'' +
                    ", status=" + status +
                    ", totalMoney=" + totalMoney +
                    ", usableAmount=" + usableAmount +
                    '}';
        }
    }
}
